/* PropertyEditorComponent Styles */
.mini-xaf-property-editor {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.mini-xaf-property-editor label {
  font-weight: 500;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-xaf-property-editor .required-mark {
  color: #dc3545;
  font-weight: bold;
}

.mini-xaf-property-editor input[type="text"],
.mini-xaf-property-editor input[type="number"],
.mini-xaf-property-editor input[type="date"],
.mini-xaf-property-editor select {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mini-xaf-property-editor input:focus,
.mini-xaf-property-editor select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.mini-xaf-property-editor input:disabled,
.mini-xaf-property-editor select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.7;
}

.mini-xaf-property-editor.has-error input,
.mini-xaf-property-editor.has-error select {
  border-color: #dc3545;
}

.mini-xaf-property-editor.has-error input:focus,
.mini-xaf-property-editor.has-error select:focus {
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* Type-specific styles */
.string-property-editor, 
.number-property-editor,
.date-property-editor,
.dropdown-property-editor {
  width: 100%;
}

.boolean-property-editor label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.boolean-property-editor input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.boolean-property-editor input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

.dropdown-property-editor select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8.825L1.763 4.588c-.39-.39-1.022-.39-1.412 0-.39.39-.39 1.022 0 1.412L6 11.65l5.65-5.65c.39-.39.39-1.022 0-1.412-.39-.39-1.022-.39-1.412 0L6 8.825z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 30px;
}

.error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.error-message::before {
  content: "⚠";
  font-size: 14px;
}
